package Engine.UIControl
{
	import Engine.UIControl.IconBase;
	
	import Interface.UIControl.ICardIcon;
	
	import flash.display.BitmapData;
	
	public class CardIcon extends IconBase implements ICardIcon
	{
		private var _onClickFun:Function = null;
		
		public function CardIcon(p_bt:BitmapData = null,p_width:Number = 49,p_height:Number = 69 )
		{
			super(null,p_width,p_height);
			if(p_bt != null)
			{
				this.setIconBMP(p_bt);
			}
			this._setClickFun(this.onClickCard);
			this.setDrag(true);
			this._content.buttonMode = true;
		}
		
		
		private function onClickCard():void
		{
			
		}
		
		public function setClickFun(fun:Function):void
		{
			
		}
		
	}
}